package com.chenhongjian.webapp.dao;

import com.chenhongjian.webapp.bean.TbUser;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TbUserMapper {

    @Select("SELECT * FROM tb_user WHERE mobile_number = #{phone}")
    @ResultMap("BaseResultMap")
    TbUser selectByPhone(String phone);

    int deleteByPrimaryKey(Integer id);

    int insert(TbUser record);

    int insertSelective(TbUser record);

    TbUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbUser record);

    int updateByPrimaryKey(TbUser record);

    List<TbUser> getList();
}